package cn.tedu.kcircle.passport.service;

import cn.tedu.kcircle.common.consts.HttpConst;
import cn.tedu.kcircle.common.po.CurrentPrincipal;
import cn.tedu.kcircle.passport.protocol.param.UserLoginInfoParam;
import cn.tedu.kcircle.passport.protocol.param.UserRegisterParam;
import cn.tedu.kcircle.passport.service.bo.UserLoginInfoBO;
import cn.tedu.kcircle.passport.service.bo.UserLoginResultBO;
import jakarta.servlet.http.HttpServletRequest;

public interface PassportService extends HttpConst {
    void logOut(CurrentPrincipal principal);
    UserLoginInfoBO getLoginInfoByUsername(String username);
    UserLoginResultBO login(UserLoginInfoParam userLoginInfoParam, HttpServletRequest request);

    void register(UserRegisterParam userRegisterParam);
}
